import streamlit as st

# 视频文件列表
video_files = [
    "video1.mp4",
    "video2.mp4",
    "video3.mp4",
    "video4.mp4",
    "video5.mp4",
    "video6.mp4",
    "video7.mp4",
    "video8.mp4"
]

def main():
    video_placeholder = st.empty()
    video = video_placeholder.video(f"/Users/yuecl/Documents/work/wwwsec/stream/pages/{video_files[0]}",autoplay=True)
    cols = st.columns(len(video_files))
    for i, video_file in enumerate(video_files):
        if cols[i].button(video_file):
            video = video_placeholder.video(f"/Users/yuecl/Documents/work/wwwsec/stream/pages/{video_file}",autoplay=True)

if __name__ == "__main__":
    main()

